﻿/****************
* Authored by Zhuo "Wizcas" Chen
* 2018 © Wubi.fun all rights reserved
*****************/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MainMenu : MonoBehaviour 
{
    public void Show()
    {
        gameObject.SetActive(true);
    }
    public void Hide() { gameObject.SetActive(false); }
    public void OnQuit()
    {
        Application.Quit();
    }
    public void OnTimeChallenge()
    {
        Hide();
        Game.instance.StartGame(true);
    }
    public void OnFreeBuild()
    {
        Hide();
        Game.instance.StartGame(false);
    }
}
